<%if @cultural_heritage_cultural_heritage_pre_registers.size == 0  %>
<p>No se encontraron pre registros</p>
<%else%>

<h1>Lista de Pre Registros</h1>
<br></br>
<table class="table-general">
  <tr>
  <br></br>
  <thead>
    <th>Código</th>
    <th>Nombre</th>   
    <th>Estado</th>
    <th>Institucion Cultural</th>
    <%#*<th>Periodo</th>%>
    <th>Cultura</th>
    <%#*<th>Estilo</th>%>
    <th>Propietario</th>
    <th>Autor</th>
     <th>Acciones</th>
  </thead>
  </tr>

<% @cultural_heritage_cultural_heritage_pre_registers.each do |cultural_heritage_cultural_heritage_pre_register| %>
  <tr>
    <td><%= cultural_heritage_cultural_heritage_pre_register.id %></td>
    <td><%= cultural_heritage_cultural_heritage_pre_register.name %></td>
    <td>
      <% if  !cultural_heritage_cultural_heritage_pre_register.state.blank? %>
      <%= cultural_heritage_cultural_heritage_pre_register.obj_state.name %>
      <%end%>
    </td>
    <td><%= cultural_heritage_cultural_heritage_pre_register.str_culturalInstitution %></td>
    <td><%= cultural_heritage_cultural_heritage_pre_register.str_culture %></td>
    <td><%= cultural_heritage_cultural_heritage_pre_register.str_owner %></td>
    <td><%= cultural_heritage_cultural_heritage_pre_register.str_author %></td>
    <td>
    <%= link_to image_tag("navi/search-16-ns.png", :border => 0, :title => 'Mostrar'), {:action => 'show',:id => cultural_heritage_cultural_heritage_pre_register.id}%>
    <%= link_to image_tag("navi/pencil-16-ns.png", :border => 0, :title => 'Editar'), {:action => 'edit',:id => cultural_heritage_cultural_heritage_pre_register.id}, {:confirm => '¿Realmente desea Editar?'}%>
    <%= link_to image_tag("navi/cross-16-ns.png", :border => 0, :title => 'Eliminar'), {:action => 'destroy',:id => cultural_heritage_cultural_heritage_pre_register.id}, {:confirm => '¿Realmente desea eliminar una denuncia?'}%>
  </td>
 
  </tr>
<% end %>
</table>
<br />

<%end%>

<%= link_to 'Nuevo pre registro', new_cultural_heritage_cultural_heritage_pre_register_path %>
